home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1994 October
/
Macformat17.cdr
/
Shareware City
/
Developers
/
Think C dcmd 1.0 ƒ
/
Think Put Lib source
/
PutPStrTo.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-13
|
382b
|
21 lines
extern unsigned char buffer[256];
extern short mark;
void PutChar(char c);
void PutSpacesTo(int endpos);
void PutPStrTo(const unsigned char* s, int endpos)
{
int i;
if ( endpos > mark )
{
for ( i=1; i<= s[0] && mark<endpos; i++ )
PutChar( s[i] );
if ( i<= s[0] )
buffer[mark] = '…';
else
PutSpacesTo( endpos ); /* pads with spaces if necessary */
}
}